﻿using MedicalLog.Domain.Entities;
using MedicalLog.Domain.Repositories;
using System.Web.Mvc;

namespace MedicalLog.WebUI.Models
{
    public class PatientViewModel
    {
        public Patient Patient { get; set; }
        public InsuranceRepository insRepo;
        public SelectList InsuranceList;
        
        public PatientViewModel()
        {
            insRepo = new InsuranceRepository();
            InsuranceList = new SelectList(insRepo.GetInsurances(), "IdInsurance", "InsuranceCompany");
            
        }

    }

}